import java.util.Scanner;
public class homework15 {


    public static void main(String[] args) {
        System.out.println("请输入菱形的行数：");
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        for (int i = 1; i <= num * 2 - 1; i++) {
            //上半部分
            if (i <= num) {
                for (int j = num; j > i; j--) {
                    System.out.print(" ");
                }
                for (int c = 1; c <= i * 2 - 1; c++) {
                    System.out.print("*");
                }
                //下半部分
            } else {
                for (int j = 1; j <= i - num; j++) {
                    System.out.print(" ");
                }
                for (int c = num * 2 - 2; c > (i - num) * 2 - 1; c--) {
                    System.out.print("*");
                }
            }
            System.out.println();
        }


    }
}